package com.cloud.school.app.repository;

import com.cloud.school.app.entity.TbMessage;
import com.cloud.school.app.util.mybatis.IMybatisMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbMessageMapper extends IMybatisMapper<TbMessage> {
    List<TbMessage> selectSendReceiveMessageByUserId(@Param("status") Integer status, @Param("userId") Long userId);

    List<TbMessage> selectByStatusAndSendUidReceiveIdIn(@Param("status") Integer status, @Param("userIds") List<Long> userIds);
}